home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 2 / Mac Magazin and MacEasy Magazine CD - Issue 02.iso / Sharewarebibliothek / Fonts / Type 1 / PostNet! v2.0 ƒ / PostNet! User Docs / PostNet! User Docs.rsrc / TEXT_135_aText.txt < prev    next >
Text File  |  1994-07-28  |  2KB  |  33 lines

  1. Setting Up Your Database
  2.  
  3. You can set up your database to calculate POSTNET bar codes automatically. For FileMaker Pro users the exact calculations are shown below and are also included in the FileMaker Pro Example. If you use a database other than FileMaker Pro, you will still be able to perform these calculations. However, the terminology may be different from what we have shown here.
  4.  
  5. BEFORE WORKING WITH YOUR DATABASE, MAKE SURE YOU HAVE MADE A BACKUP COPY!
  6.  
  7. In your FileMaker Pro database, create a field called ZIPcode. Designate this as a text field. (Note: If you already have a text field for ZIP codes, you do not have to create a new one. Just substitute your field name wherever the name ZIPcode appears. 
  8.  
  9. The ZIPcode field contains your ZIP+4 code for each mailing address. Remember, the ZIP+4 code must always have a dash between the fifth and sixth digits (i.e. XXXXX-XXXX).
  10.  
  11. Create another field and name it CorrectionDigit. Designate this as a calculation field. In the formula window, enter the following formula:
  12.  
  13. Right (100-(Middle (ZIPcode,1,1) + Middle (ZIPcode,2,1) + Middle (ZIPcode,3,1) + Middle (ZIPcode,4,1) + Middle (ZIPcode,5,1) + Middle (ZIPcode,7,1) + Middle (ZIPcode,8,1) + Middle (ZIPcode,9,1) + Middle (ZIPcode,10,1)
  14.  
  15. Make sure you designate the result of this calculation as text.
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. In this Correction Digit formula, the 9 digits of the ZIP code are being broken apart, added together and subtracted from the value 100. Then the right-most digit is selected as the Correction Digit. This is the same process that was explained in the section ‚ÄúUnderstanding Bar Coding.‚Äù
  23.  
  24. Create another field called BARcode. Make sure you designate this as a text field. In the formula window, enter the following formula:
  25.  
  26.              ‚Äú!‚Äù & Left (ZIPcode,5) & Right (ZIPcode,4) & CorrectionDigit & ‚Äú!‚Äù
  27.  
  28. Make sure you designate the result of this calculation as text.
  29.  
  30. The field called BARcode concatenates the entire ZIP+4 code into its proper bar code sequence (i.e. Framing Bar  &  Left Five characters of ZIP+4  & Right Four characters of ZIP+4  &  Correction Digit & Framing Bar)
  31.  
  32. Now that your calculations are set up, it‚Äôs time to create a layout  for printing the bar code.
  33.